<%@ page contentType="text/form;charset=windows-1252"%>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/hdiv-c.tld"%>
<%@ taglib prefix="form" uri="/WEB-INF/tlds/hdiv-spring-form-3_0_4.tld"%>

<script type="text/javascript" language="javascript">

    function regresar() {
      //moveForward('mostrarHWF2005.do');
      location.href='<c:url value='mostrarHWF2004.html'/>';
    }        
    
    function reporte() {
        var fecha = document.forms[0].fecha.value;
        var hora  = document.forms[0].hora.value;
        var cliente     = document.forms[0].cliente.value;
        var sucursal    = document.forms[0].sucursal.value;
        var formulario  = 'HMR2004';
        
        window.open('mostrarReporte.do?fecha='+fecha+'&hora='+hora+'&cliente='+cliente+'&formulario='+formulario+'&sucursal='+sucursal);
    } 
    
    function openwindow(url,winheight,winwidth)
    {
        winwidth='450';
        winheight='920';
        window.open('about:blank', 'window1', 'location=0,directories=0,status=0,scrollbars=1,resizable=1,width='+winwidth+',height='+winheight);

        var accion = 'mostrarReporte';
        var target = 'window1';
        document.forms[0].target = target;
        document.forms[0].accion.value = accion;
        document.forms[0].submit();      
    }    
    
    
</script>
<form:form modelAttribute="form">
<form:hidden path = "accion"/>
<form:hidden path = "control"/>
<form:hidden path = "formulario"/>
<form:hidden path="fecha"/>
<form:hidden path="hora"/>
<form:hidden path="cliente"/>
<form:hidden path="sucursal"/>
<table id="fullheighttable" width="775" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td align="left" valign="top" class="fondo_contenido padtop16left21">
      <table border="0" cellspacing="0" cellpadding="0" class="verdana11bazul">
      <tr>
        <td height="22" align="left" valign="top" class="verdana11bazul">
		<ul class="navlist2">
		<li>
                              CARGA DE TRANSFERENCIAS
                            </li>
		</ul></td>
        </tr>
      <tr>
        <td align="left" valign="top" class="borde_totalblanco"><table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="105" height="23" align="left" valign="top" class="verdana10bazul">Banco</td>
            <td height="23" align="left" valign="top" class="verdana10negro">
                <c:out value="${sessionScope.nombreCliente}"/>
               </td>
          </tr>    

        </table>
        </td>
      </tr>
      </table>
  <table>
  <tr><td></td></tr>
  </table>
    
  <table cellspacing="2" cellpadding="0" border="0" width="90%" align="center" class="verdana11bazul">
  <tr>
      <td width="30%" height="35">&nbsp;</td>
      <td width="30%">&nbsp;</td>
      <td width="25%">
        <DIV align="right">        
        </DIV>
      </td>
      <td width="15%">
        <DIV align="center">
        </DIV>
      </td>
  </tr>
  </table>
  
  <div align="center">
    <table border="0">
        <tr>
             <td class="padtop12 padleft20" height="23" valign="top" align="center">
                <c:if test="${!resultOk}">
                    <c:set var="errorStyle" value="color:red;"/>
                </c:if>
                <c:if test="${resultOk}">
                    <c:set var="errorStyle" value="color:blue;"/>
                </c:if>                
                <form:errors cssStyle="${errorStyle}"/>
             </td>
        </tr>
    </table>  
  </div>  

  <div align="center">
  <table border="0" cellspacing="0" cellpadding="0" class="verdana13bgranate">
          <tr>
            <td align="left" height="50" valign="bottom">
                <input name="Submit2" type="button" class="boton" value="Regresar" onclick="regresar();">
            </td>
            <td align="left" height="50" valign="bottom">
                <input name="Submit2" type="button" class="boton" value="Reporte" onclick="openwindow('reporte',450,920);">
            </td>            
          </tr>
   </table>
   </div> 
  
</td>
</tr>
</table>
 </form:form> 
